﻿namespace ONVIFRTSPFilter
{
    using System;
    using System.Runtime.CompilerServices;
    using System.Runtime.InteropServices;

    [ComImport, InterfaceType((short) 1), Guid("56A868A6-0AD4-11CE-B03A-0020AF0BA770")]
    public interface IFileSourceFilter
    {
        [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
        void Load([In, MarshalAs(UnmanagedType.LPWStr)] string pszFileName, [In] ref _AMMediaType pmt);
        [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
        void GetCurFile([MarshalAs(UnmanagedType.LPWStr)] out string ppszFileName, out _AMMediaType pmt);
    }
}

